<template>
  <div class="bulletin">
    <div class="title">
      <i>{{ notice.title }}</i>
    </div>
    <div class="foot">
      <div class="time">
        <i class="iconfont icon-dengdaizhong"></i>
        <div class="endTime" v-if="notice.outTime === null">无期限</div>
        <div class="endTime" v-else>{{ notice.outTime }}</div>
      </div>
      <div class="user">
        <i class="iconfont icon-zuozhe"></i>
        <div class="creator">{{ notice.creatorName }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PtojBulletin",
  props: {
    notice: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.bulletin {
  width: 90%;
  background-color: #ffffff7b;
  border-radius: 10px;
  color: black;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 300;
  padding: 10px;
  margin-top: 10px;
  box-shadow: 0 1px 2px rgba(0, 10, 32, 0.1), 0 2px 8px rgba(0, 10, 32, 0.15);
  cursor: pointer;
  .title {
    margin: 0 auto;
    text-align: center;
    font-weight: 550 !important;
    font-size: 20px;
  }
  .foot {
    display: flex;
    align-items: center;

    justify-content: center;
    .time {
      display: flex;
      align-items: center;
      font-size: 14px;
      i {
        padding: 4px;
        font-size: 0.9rem;
      }
      .endTime {
        margin-left: 3px;
        font-weight: 400;
      }
    }
    .user {
      margin-left: 10px;
      display: flex;
      align-items: center;
      .creator {
        font-size: 16px;
        font-weight: 400;
      }
    }
  }
}
</style>
